<div style="padding:15px;">
	<h1>Listing Customers</h1>
<%= link_to 'New customer_record', :action => "new" %>
<table>
  <tr>
    <th>First Name</th>
    <th>Middle</th>
    <th>Last</th>
    <th>Mobile</th>
    <th>Work</th>
    <th>Email</th>
  </tr>

<% for customer_record in @customer_records %>
  <tr>
    <td><%=h customer_record.fname %></td>
    <td><%=h customer_record.mname %></td>
    <td><%=h customer_record.lname %></td>

    <td><%=h customer_record.mobile %></td>
    <td><%=h customer_record.work %></td>
    <td><%=h customer_record.email %></td>
    <td><%= link_to 'Show', :action => "show", :id => customer_record.id %></td>
    <td><%= link_to 'Edit', :action => "edit", :id => customer_record.id %></td>
    <td><%= link_to 'Destroy', :action => "destroy", :id => customer_record.id, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>



<%= link_to 'New customer_record', :action => "new" %>
</div>
